// my_task.js中的代码
var i = 0;
function timedCount() {
  i = i + 1;
  postMessage(i);
  console.log(i);
  setTimeout(timedCount, 1000);
}
timedCount();
